<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/common/_container :: htmlhead"></head>
<body>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <input type="hidden" id="id" value=""/>
            <div class="row">
                <div class="col-sm-12" id="itemsArea">
                    <input type="hidden" id="itemSize" th:value="${subDicts.size()}" />
                    <div class="form-group">
                        <label class="col-sm-2 control-label">字典名称
                        	<span style="color: red">*</span>
                        </label>
                        <div class="col-sm-3">
                            <input class="form-control" id="dictName" type="text" th:value="${dict.name}"/>
                            <input type="hidden" id="dictId" th:value="${dict.id}"/>
                        </div>
                         <label class="col-sm-2 control-label">字典类型
                         	<span style="color: red">*</span>
                         </label>
                        <div class="col-sm-3">
                            <input class="form-control" id="dictType" type="text" th:value="${dict.type}" disabled="disabled"/>
                        </div>
                        
                    </div>
                   <div class="hr-line-dashed"></div>
                  
                        <div th:if="${subDicts!=null}" name="dictItem"  th:each="item,iterStat:${subDicts}" class="form-group" th:id="'dictItem'+${iterStat.index}">
                            <label class="col-sm-2 control-label">值</label>
                            <div class="col-sm-3">
                                <input class="form-control" type="text" name="itemNum" th:value="${item.num}"/>
                            </div>
                            <label class="col-sm-2 control-label" >名称</label>
                            <div class="col-sm-3">
                                <input class="form-control" type="text" name="itemName" th:value="${item.name}"/>
                            </div>                           
                        </div>                                      
            </div>
            
        </div>
    </div>

   

    <script th:src="@{/static/modular/system/dict/dict_info.js}"></script>
    <script>
	$(function(){
		$("input").attr("disabled",true);
		$("select").attr("disabled",true);
	});
</script>
</div>
</div>
</body>
</html>